#include "qmemoryleak.h"


QMemoryLeak::QMemoryLeak()
{
	_CrtMemCheckpoint(&m_begin);
}

QMemoryLeak::~QMemoryLeak()
{
	_CrtMemCheckpoint(&m_end);
	if(_CrtMemDifference( &m_diff, &m_begin, &m_end ) )
		_CrtMemDumpStatistics( &m_diff );
}
